package org.litespring.stereotype;

import java.lang.annotation.*;

/**
 * @author ChangLiang
 * @date 2020/8/14
 */
@Target({ElementType.CONSTRUCTOR,ElementType.FIELD,ElementType.METHOD,ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Autowired {

    /**
     * Declares whether the annotated dependency is required.
     * Defaults to {@code true}.
     * @return
     */
    boolean required() default true;
}
